package cn.chengpengper.dubbo.interfaces.stock;

import cn.chengpengper.seckill.common.cache.model.SeckillBusinessCache;
import cn.chengpengper.seckill.common.model.dto.SeckillStockDTO;

/**
 * @author chengpeng.hu
 */
public interface SeckillStockDubboService {

    /**
     * 获取商品的可用库存
     */
    SeckillBusinessCache<Integer> getAvailableStock(Long goodsId, Long version);

    /**
     * 获取商品的库存信息
     */
    SeckillBusinessCache<SeckillStockDTO> getSeckillStock(Long goodsId, Long version);

}
